package com.ntschy.sys.entity.dataobject;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ntschy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 操作日志记录表 oper_log
 *
 * @author ezreal_geng
 */
@Data
@NoArgsConstructor  //无参构造函数
@TableName("SYS_OPER_LOG")
@ApiModel(description = "操作日志")
public class SysOperLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志主键")
    @TableId
    private String operId;

    @ApiModelProperty(value = "操作模块")
    @TableField(value = "Title")
    private String title;

    @ApiModelProperty(value = "业务类型（0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据）")
    @TableField(value = "BusinessType")
    private Integer businessType;

    @ApiModelProperty(value = "业务类型数组")
    @TableField(exist = false)
    private Integer[] businessTypes;

    @ApiModelProperty(value = "请求方法")
    @TableField(value = "Method")
    private String method;

    @ApiModelProperty(value = "请求方式")
    @TableField(value = "RequestMethod")
    private String requestMethod;

    @ApiModelProperty(value = "操作人员")
    @TableField(value = "OperName")
    private String operName;

    @ApiModelProperty(value = "请求url")
    @TableField(value = "OperUrl")
    private String operUrl;

    @ApiModelProperty(value = "请求参数")
    @TableField(value = "OperParam")
    private String operParam;

    @ApiModelProperty(value = "返回参数")
    @TableField(value = "JsonResult")
    private String jsonResult;

    @ApiModelProperty(value = "操作状态（0正常 1异常）")
    @TableField(value = "Status")
    private Integer status;

    @ApiModelProperty(value = "错误消息")
    @TableField(value = "ErrorMsg")
    private String errorMsg;

    @ApiModelProperty(value = "操作时间")
    @TableField(value = "OperTime")
    private String operTime;



}
